package ${baseInfo.packageName};

import ${tableClass.fullClassName};
<#if baseService??&&baseService!="">
import ${baseService};
    <#list baseService?split(".") as simpleName>
        <#if !simpleName_has_next>
            <#assign serviceSimpleName>${simpleName}</#assign>
        </#if>
    </#list>
</#if>
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import ${domainCmd.packageName}.${tableClass.shortClassName}Cmd;
import ${domainUpd.packageName}.${tableClass.shortClassName}Upd;
import ${domainQry.packageName}.${tableClass.shortClassName}Qry;
import ${domainVo.packageName}.${tableClass.shortClassName}Vo;

/**
* @author ${author!}
* @description 针对表【${tableClass.tableName}<#if tableClass.remark?has_content>(${tableClass.remark!})</#if>】的数据库操作Service
* @createDate ${.now?string('yyyy-MM-dd HH:mm:ss')}
*/
public interface ${baseInfo.fileName} extends IService<${tableClass.shortClassName}> {

    //根据id查
    ${tableClass.shortClassName}Vo findOne(Long id);

    //根据id更新
    Boolean updateOne(${tableClass.shortClassName}Upd upd);

    //分页查
    IPage<${tableClass.shortClassName}Vo> findPage(${tableClass.shortClassName}Qry qry);

    //新增
    Boolean createOne(${tableClass.shortClassName}Cmd cmd);

    //根据id删除
    Boolean deleteOne(Long id);
}
